/* 基础动画效果 */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(2deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(5px) rotate(-2deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-15px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(15px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
  }
}

@keyframes spin3D {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* 新增可爱风格动画 */
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
}

@keyframes jelly {
  0%,
  100% {
    transform: scale(1, 1);
  }
  25% {
    transform: scale(0.95, 1.05);
  }
  50% {
    transform: scale(1.05, 0.95);
  }
  75% {
    transform: scale(0.95, 1.05);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 页面背景 */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffefef, #d8e9ff);
  z-index: -1;
}

.background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 192, 203, 0.2) 1%,
      transparent 5%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(173, 216, 230, 0.2) 1%,
      transparent 5%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.2) 1%,
      transparent 5%
    );
  background-size: 100px 100px;
  opacity: 0.5;
}

.floating-bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.2)
  );
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  animation: float 8s infinite ease-in-out;
  z-index: -1;
}

.bubble-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.bubble-2 {
  width: 60px;
  height: 60px;
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.bubble-3 {
  width: 40px;
  height: 40px;
  bottom: 15%;
  left: 20%;
  animation-delay: 2s;
}

.bubble-4 {
  width: 100px;
  height: 100px;
  bottom: 25%;
  right: 10%;
  animation-delay: 3s;
}

/* 下载按钮样式 */
.download-btn {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  font-size: 16px;
}

.download-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3);
}

.download-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite linear;
  background-size: 50% 50%;
}

/* 媒体卡片样式 */
.media-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.media-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.media-card:active {
  transform: scale(0.98);
}

.media-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
}

.media-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.media-card:hover .media-card-inner {
  transform: rotateY(5deg);
}

/* 加载动画 */
.loading-animation {
  animation: rotate 1.5s infinite linear;
}

.pulse-animation {
  animation: pulse 2s infinite ease-in-out;
}

.bounce-animation {
  animation: bounce 1.5s infinite ease-in-out;
}

.float-animation {
  animation: float 6s infinite ease-in-out;
}

.wave-animation {
  animation: wave 3s infinite ease-in-out;
}

.glow-animation {
  animation: glowPulse 2s infinite ease-in-out;
}

.spin3d-animation {
  animation: spin3D 8s infinite linear;
}

/* 结果容器 */
.results-container {
  animation: slideUp 0.5s ease-out;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.results-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff6b6b, #4facfe, #764ba2, #ff6b6b);
  background-size: 300% 100%;
  animation: shimmer 3s infinite linear;
}

/* 媒体类型标签 */
.media-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.image-badge {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
}

.video-badge {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

/* 主按钮样式 */
.primary-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 15px;
  padding: 12px 20px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 16px;
}

.primary-btn:active {
  transform: translateY(3px);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.primary-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite linear;
  background-size: 50% 50%;
}

/* 输入框样式 */
.input-container {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.08),
    0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 5px 15px;
}

.input-container:focus-within {
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.08),
    0 0 0 3px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

/* 服务标签样式 */
.service-tag {
  background: linear-gradient(135deg, #f6f7f8, #e9ebee);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: #4a5568;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-tag:active {
  transform: scale(0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 成功消息样式 */
.success-message {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.3s ease-out;
}

/* 主内容卡片 */
.main-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.main-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

/* 服务弹窗 */
.services-popup {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeIn 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.services-popup::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4facfe, #00f2fe, #4facfe);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

/* 加载中状态 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.3s ease-out;
}

.loading-text {
  margin-top: 15px;
  font-weight: 500;
  color: #4a5568;
  position: relative;
}

.loading-text::after {
  content: "...";
  position: absolute;
  animation: wave 1.5s infinite ease-in-out;
}

/* 关闭按钮 */
.close-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.close-button:active {
  transform: scale(0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 图片和视频容器 */
.media-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.media-container img,
.media-container video {
  transition: transform 0.5s ease;
}

.media-container:hover img,
.media-container:hover video {
  transform: scale(1.05);
}

/* 闪光效果 */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite linear;
  background-size: 50% 50%;
}

/* 标题样式 */
.section-title {
  font-size: 18px;
  font-weight: bold;
  color: #2d3748;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
}

/* 新增可爱风格元素 */
.floating-decoration {
  position: absolute;
  top: 10%;
  left: 10%;
  z-index: 0;
  animation: float 8s infinite ease-in-out;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.rainbow-decoration {
  position: absolute;
  top: 5%;
  right: 5%;
  z-index: 0;
  opacity: 0.7;
  transform: rotate(10deg);
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.cute-text {
  font-family: "Comic Sans MS", "Marker Felt", cursive;
  letter-spacing: 0.5px;
}

.cute-card {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 35px rgba(255, 182, 193, 0.3);
  border: 2px dashed rgba(255, 182, 193, 0.5);
  overflow: hidden;
}

.cute-input {
  border-radius: 25px;
  border: 2px solid rgba(255, 182, 193, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

.cute-button {
  border-radius: 25px;
  background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
  color: white;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4);
  border: none;
  animation: heartbeat 4s infinite;
}

.cute-button:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 4px 10px rgba(255, 182, 193, 0.3);
}

.cute-character {
  margin-bottom: 15px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
  animation: bounce 2s infinite ease-in-out;
}

.cute-loading {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 35px rgba(173, 216, 230, 0.3);
  border: 2px dashed rgba(173, 216, 230, 0.5);
}

.cute-results {
  border-radius: 30px 30px 0 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -10px 30px rgba(255, 182, 193, 0.3);
  border-top: 2px dashed rgba(255, 182, 193, 0.5);
  border-left: 2px dashed rgba(255, 182, 193, 0.5);
  border-right: 2px dashed rgba(255, 182, 193, 0.5);
}

.cute-media-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(173, 216, 230, 0.3);
  border: 2px solid rgba(173, 216, 230, 0.3);
  animation: pop 0.5s;
}

.cute-badge {
  border-radius: 15px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: bold;
  animation: jelly 2s infinite;
}

.cute-download-btn {
  border-radius: 20px;
  background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
  box-shadow: 0 4px 10px rgba(255, 182, 193, 0.4);
  animation: wiggle 3s infinite;
}

.cute-close {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 15px rgba(255, 182, 193, 0.3);
  border: 2px solid rgba(255, 182, 193, 0.3);
}

.cute-success {
  background: rgba(255, 255, 255, 0.95);
  color: #ff6b6b;
  border-radius: 25px;
  padding: 12px 24px;
  box-shadow: 0 10px 25px rgba(255, 182, 193, 0.4);
  border: 2px dashed rgba(255, 182, 193, 0.5);
  animation: pop 0.5s;
}

